package org.emergency.framework.dao.upDownLoad;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.emergency.framework.dao.GenericDaoInterface;
import org.emergency.framework.model.FileUpload;
import org.emergency.framework.model.TbPermission;

public interface IFileUploadDAO extends GenericDaoInterface<FileUpload>{
	/**
	 * 
	 * @param tmpId
	 * @return
	 */
	public List<FileUpload> getFileUploads(String tmpId);

	/**
	 * 
	 * @param srcName
	 * @param saveName
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public FileUpload getFileUploadByPackAndName(String srcName, String saveName);

	/**
	 * 存
	 * 
	 * @param fileUpload
	 */
	public boolean save(FileUpload fileUpload);

	/**
	 * 
	 * @param clazz
	 * @param id
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public FileUpload getFileUpload(Class clazz, Serializable id);

	/**
	 * 
	 * @param clazz
	 * @param id
	 */
	@SuppressWarnings("unchecked")
	public void deleteFileUpload(Class clazz, Serializable id);

	/**
	 * 
	 * @param entities
	 */
	@SuppressWarnings("unchecked")
	public void deleteAll(Collection entities);
}
